package com.depthsdata.coe.dao;
/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2019-12-27 11:41:49
  * Warning ! This file will be overwrite when regenerate !
  * 
 */
import org.apache.commons.lang.StringUtils;
public class BusinessFormField implements java.io.Serializable {
    
    public BusinessFormField() {
		super();
	}
	
		
		
		
		
		
	private long id;	
	
	/**
	 * Attribute id Be Seted Falg
	 */
	private boolean idSetted = false;
	
		/**
	 * Attribute id is Null Falg
	 */
	private boolean idNull = false;
	
	   
    /**
	 * Get id
	 * 
	 * @return long
	 */
	final public long getId(){
	    
				
		return id;
				
	}
	
	/**
	 * Set id
	 * 
	 * @param long
	 */
	final public void setId(long id ){
		
				
		this.id = id;
				
		this.idSetted = true;
		
				
				
		this.setIdNull(false);
				
				
	}
	
	/**
	 * Get id Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isIdSetted(){
		return this.idSetted;
	}
	
		
	/**
	 * Set id Null
	 * 
	 */
	final public void setIdNull(){
			
		this.idNull = true;
		
	}	
	
	final public void setIdNull(boolean aNullFlag){
			
		this.idNull = aNullFlag;
		
	}	
	
	final public boolean isIdNull(){
			
		return this.idNull;
		
	}
	
    	
	   
		
		
		
	private long businessFormId;	
	
	/**
	 * Attribute businessFormId Be Seted Falg
	 */
	private boolean businessFormIdSetted = false;
	
		/**
	 * Attribute businessFormId is Null Falg
	 */
	private boolean businessFormIdNull = false;
	
	   
    /**
	 * Get businessFormId
	 * 
	 * @return long
	 */
	final public long getBusinessFormId(){
	    
				
		return businessFormId;
				
	}
	
	/**
	 * Set businessFormId
	 * 
	 * @param long
	 */
	final public void setBusinessFormId(long businessFormId ){
		
				
		this.businessFormId = businessFormId;
				
		this.businessFormIdSetted = true;
		
				
				
		this.setBusinessFormIdNull(false);
				
				
	}
	
	/**
	 * Get businessFormId Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isBusinessFormIdSetted(){
		return this.businessFormIdSetted;
	}
	
		
	/**
	 * Set businessFormId Null
	 * 
	 */
	final public void setBusinessFormIdNull(){
			
		this.businessFormIdNull = true;
		
	}	
	
	final public void setBusinessFormIdNull(boolean aNullFlag){
			
		this.businessFormIdNull = aNullFlag;
		
	}	
	
	final public boolean isBusinessFormIdNull(){
			
		return this.businessFormIdNull;
		
	}
	
    	
	   
		
		
		
	private String fieldType;	
	
	/**
	 * Attribute fieldType Be Seted Falg
	 */
	private boolean fieldTypeSetted = false;
	
		/**
	 * Attribute fieldType is Null Falg
	 */
	private boolean fieldTypeNull = false;
	
	   
    /**
	 * Get fieldType
	 * 
	 * @return String
	 */
	final public String getFieldType(){
	    
				
		if(isFieldTypeNull()){
			return null;
		}
		else{
			return StringUtils.trim(fieldType);
		}
				
	}
	
	/**
	 * Set fieldType
	 * 
	 * @param String
	 */
	final public void setFieldType(String fieldType ){
		
				
		this.fieldType = StringUtils.trim(fieldType);
				
		this.fieldTypeSetted = true;
		
				
				
		this.setFieldTypeNull(this.fieldType == null);
				
				
	}
	
	/**
	 * Get fieldType Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isFieldTypeSetted(){
		return this.fieldTypeSetted;
	}
	
		
	/**
	 * Set fieldType Null
	 * 
	 */
	final public void setFieldTypeNull(){
			
		this.fieldTypeNull = true;
		
	}	
	
	final public void setFieldTypeNull(boolean aNullFlag){
			
		this.fieldTypeNull = aNullFlag;
		
	}	
	
	final public boolean isFieldTypeNull(){
			
		return this.fieldTypeNull;
		
	}
	
    	
	   
		
		
		
	private String fieldLabel;	
	
	/**
	 * Attribute fieldLabel Be Seted Falg
	 */
	private boolean fieldLabelSetted = false;
	
		/**
	 * Attribute fieldLabel is Null Falg
	 */
	private boolean fieldLabelNull = false;
	
	   
    /**
	 * Get fieldLabel
	 * 
	 * @return String
	 */
	final public String getFieldLabel(){
	    
				
		if(isFieldLabelNull()){
			return null;
		}
		else{
			return StringUtils.trim(fieldLabel);
		}
				
	}
	
	/**
	 * Set fieldLabel
	 * 
	 * @param String
	 */
	final public void setFieldLabel(String fieldLabel ){
		
				
		this.fieldLabel = StringUtils.trim(fieldLabel);
				
		this.fieldLabelSetted = true;
		
				
				
		this.setFieldLabelNull(this.fieldLabel == null);
				
				
	}
	
	/**
	 * Get fieldLabel Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isFieldLabelSetted(){
		return this.fieldLabelSetted;
	}
	
		
	/**
	 * Set fieldLabel Null
	 * 
	 */
	final public void setFieldLabelNull(){
			
		this.fieldLabelNull = true;
		
	}	
	
	final public void setFieldLabelNull(boolean aNullFlag){
			
		this.fieldLabelNull = aNullFlag;
		
	}	
	
	final public boolean isFieldLabelNull(){
			
		return this.fieldLabelNull;
		
	}
	
    	
	   
		
		
		
	private long deleteFlag;	
	
	/**
	 * Attribute deleteFlag Be Seted Falg
	 */
	private boolean deleteFlagSetted = false;
	
		/**
	 * Attribute deleteFlag is Null Falg
	 */
	private boolean deleteFlagNull = false;
	
	   
    /**
	 * Get deleteFlag
	 * 
	 * @return long
	 */
	final public long getDeleteFlag(){
	    
				
		return deleteFlag;
				
	}
	
	/**
	 * Set deleteFlag
	 * 
	 * @param long
	 */
	final public void setDeleteFlag(long deleteFlag ){
		
				
		this.deleteFlag = deleteFlag;
				
		this.deleteFlagSetted = true;
		
				
				
		this.setDeleteFlagNull(false);
				
				
	}
	
	/**
	 * Get deleteFlag Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isDeleteFlagSetted(){
		return this.deleteFlagSetted;
	}
	
		
	/**
	 * Set deleteFlag Null
	 * 
	 */
	final public void setDeleteFlagNull(){
			
		this.deleteFlagNull = true;
		
	}	
	
	final public void setDeleteFlagNull(boolean aNullFlag){
			
		this.deleteFlagNull = aNullFlag;
		
	}	
	
	final public boolean isDeleteFlagNull(){
			
		return this.deleteFlagNull;
		
	}
	
    	
	   
		
		
		
	private String status;	
	
	/**
	 * Attribute status Be Seted Falg
	 */
	private boolean statusSetted = false;
	
		/**
	 * Attribute status is Null Falg
	 */
	private boolean statusNull = false;
	
	   
    /**
	 * Get status
	 * 
	 * @return String
	 */
	final public String getStatus(){
	    
				
		if(isStatusNull()){
			return null;
		}
		else{
			return StringUtils.trim(status);
		}
				
	}
	
	/**
	 * Set status
	 * 
	 * @param String
	 */
	final public void setStatus(String status ){
		
				
		this.status = StringUtils.trim(status);
				
		this.statusSetted = true;
		
				
				
		this.setStatusNull(this.status == null);
				
				
	}
	
	/**
	 * Get status Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isStatusSetted(){
		return this.statusSetted;
	}
	
		
	/**
	 * Set status Null
	 * 
	 */
	final public void setStatusNull(){
			
		this.statusNull = true;
		
	}	
	
	final public void setStatusNull(boolean aNullFlag){
			
		this.statusNull = aNullFlag;
		
	}	
	
	final public boolean isStatusNull(){
			
		return this.statusNull;
		
	}
	
    	
	   
		
		
		
	private String remarks;	
	
	/**
	 * Attribute remarks Be Seted Falg
	 */
	private boolean remarksSetted = false;
	
		/**
	 * Attribute remarks is Null Falg
	 */
	private boolean remarksNull = false;
	
	   
    /**
	 * Get remarks
	 * 
	 * @return String
	 */
	final public String getRemarks(){
	    
				
		if(isRemarksNull()){
			return null;
		}
		else{
			return StringUtils.trim(remarks);
		}
				
	}
	
	/**
	 * Set remarks
	 * 
	 * @param String
	 */
	final public void setRemarks(String remarks ){
		
				
		this.remarks = StringUtils.trim(remarks);
				
		this.remarksSetted = true;
		
				
				
		this.setRemarksNull(this.remarks == null);
				
				
	}
	
	/**
	 * Get remarks Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isRemarksSetted(){
		return this.remarksSetted;
	}
	
		
	/**
	 * Set remarks Null
	 * 
	 */
	final public void setRemarksNull(){
			
		this.remarksNull = true;
		
	}	
	
	final public void setRemarksNull(boolean aNullFlag){
			
		this.remarksNull = aNullFlag;
		
	}	
	
	final public boolean isRemarksNull(){
			
		return this.remarksNull;
		
	}
	
    	
	   
		
		
		
		
	
	
	public int hashCode() {
		final int prime = 31;
		int result = 1;
				
				
		result = prime * result + (int) (getId() ^ (getId() >>> 32));
						
		return result;
	}
	
	public boolean equals(Object obj) {
	
		if (obj == null){
			return false;
		}
		if ((obj instanceof BusinessFormField) == false){
			return false;
		}
		BusinessFormField other = (BusinessFormField) obj;
		
				
				
		if (getId() != other.getId()){
			return false;
		}
						
		return true;
	
	}	
	
	public String toString(){
	    
		StringBuffer buffer = new StringBuffer();
		
		buffer.append("[");
		
		        
		buffer.append("id=");
		buffer.append(this.id);
		        
		buffer.append("businessFormId=");
		buffer.append(this.businessFormId);
		        
		buffer.append("fieldType=");
		buffer.append(this.fieldType);
		        
		buffer.append("fieldLabel=");
		buffer.append(this.fieldLabel);
		        
		buffer.append("deleteFlag=");
		buffer.append(this.deleteFlag);
		        
		buffer.append("status=");
		buffer.append(this.status);
		        
		buffer.append("remarks=");
		buffer.append(this.remarks);
				
		buffer.append("]");
		
		return buffer.toString();
	}
	
	
}